package Work;

public class ShowHandlerDemo {
    public static void main(String[] args) {
        useShowHandler(new ShowHandler() {
            @Override
            public void show() {
                System.out.println("第一题目");
            }
        });

        useShowHandler(()->
            System.out.println("第一题目")
        );
    }
    public static void useShowHandler(ShowHandler s){
        s.show();
    }
}

interface ShowHandler{
    void show();
}
